import java.util.StringTokenizer;


public class StrTokDemo {

  public static void main(String[] args) {

    StringTokenizer st = new StringTokenizer("Java is a great language!");
    while (st.hasMoreTokens())
      System.out.println("Token: " + st.nextToken());
  }
}
